<table width="400" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><strong>Contact Form </strong></td>
</tr>
</table>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="1">
	
	<tr>
		<td>
		<!--<form name="form1" method="post" action="send_contact.php">-->
		<?php echo form_open('student/messageSend'); ?>
		<table width="100%" border="0" cellspacing="1" cellpadding="3">
			<tr>
				<td>Detail</td>
				<td>:</td>
				<td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td>
			</tr>
			
			<tr>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td><input type="submit" name="Send" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
			</tr>
		</table>
	<!--</form> -->
	</td>
	</tr>
</table>
<h2>Messages from Admin</h2>
<table>
	<?php
		foreach ($received as $r) {
			echo "<tr>";
			echo "<td>".$r['message']."</td>";
			echo "</tr>";
		}
	?>
</table>
	<?php echo anchor('student/index','Back to Home Page');?> </br>
	<?php echo anchor('student/logout','Logout');?>